<?php

namespace App\Library\Requests\Upload;

class UploadVideoRequest extends UploadFileRequest
{
    public function rules(): array
    {
        return array_merge(parent::rules(), [
            'file' => 'required|file|between:0,20480|mimes:mp4,avi,flv',
        ]);
    }

    public function messages(): array
    {
        return [
            'file.required' => '请选择要上传的视频',
        ];
    }
}
